package com.partvoyage.client.mvp2.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class ChargerPhotoFacebookEvent extends
		GwtEvent<ChargerPhotoFacebookEvent.ChargerPhotoFacebookEventHandler> {
	public static Type<ChargerPhotoFacebookEventHandler> TYPE = new Type<ChargerPhotoFacebookEventHandler>();

	public interface ChargerPhotoFacebookEventHandler extends EventHandler {
		void onChargerPhotoFacebook(ChargerPhotoFacebookEvent event);
	}

	private Double latitude;
	private Double longitude;
	private String url;

	public ChargerPhotoFacebookEvent(String url, Double latitude,
			Double longitude) {
		this.url = url;
		this.longitude = longitude;
		this.latitude = latitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public String getUrl() {
		return url;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ChargerPhotoFacebookEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ChargerPhotoFacebookEventHandler handler) {
		handler.onChargerPhotoFacebook(this);

	}

}
